import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/api/ruo/account/page',
    method: 'post',
    data
  })
}
export function login(data) {
  return request({
    url: '/api/ruo/login',
    method: 'post',
    data
  })
}
export function addAccount(data) {
  return request({
    url: '/api/ruo/account',
    method: 'post',
    data
  })
}
export function editAccount(data) {
  return request({
    url: '/api/ruo/account',
    method: 'patch',
    data
  })
}
export function statusAccount(data) {
  return request({
    url: '/api/ruo/account/status',
    method: 'patch',
    data
  })
}
export function delAccount(id) {
  return request({
    url: `/api/ruo/account/${id}`,
    method: 'delete'
  })
}
